import Vue from "vue";
import Router from "vue-router";

Vue.use(Router);

export default new Router({
  base: "big-screen",
  routes: [
    {
      path: "/",
      component: () => import("../views/index.vue"),
    },
    {
      path: "/indexPage",
      component: () => import("../views/indexPage.vue"),
      children: [
        {
          path: "/index",
          name: "整屏",
          component: () => import("../views/index.vue"),
        },
      ],
    },
    {
      path: "/indexSwiper",
      component: () => import("../views/indexSwiper.vue"),
      children: [
        {
          path: "/swiper",
          name: "四屏滚动",
          component: () => import("../views/swiper.vue"),
        },
      ],
    },
  ],
});
